<div class="doc-item" id="doc-1050"><h2 class="doc-item-name">miglayout<span class="namespace">(clojure.contrib.miglayout)</span></h2><ul class="var-arglists"><li>(<span class="var-name">miglayout</span> container &amp; args)</li></ul><div class="var-docstring"><p>Adds java.awt.Components to a javax.swing.JComponent with constraints
  formatted for the MiGLayout layout manager.</p><p>Arguments: container [item constraint*]*</p><p>- container: the container for the specified components, its layout
      manager will be set to a new instance of MigLayout</p><p>- an inline series of items and constraints--each item may be followed
      by zero or more constraints.</p><p>Item:</p><p>- An item is either a Component or one of the keywords :layout
     :column or :row. Constraints for a keyword item affect the entire
      layout.</p><p>Constraint: string, keyword, vector, map, or set</p><p>- A string specifies one or more constraints each with zero or more
      arguments.
    - A keyword specifies a single constraint without arguments
    - A vector specifies a single constraint with one or more arguments
    - A map specifies one or more constraints as keys, each mapped to a
      single argument
    - A set groups two or more constraints, each a string, keyword,
      vector, map, or set</p><p>Any items marked with an &quot;id&quot; constraint will be included in a map from
  id to component attached to the container. The map can be retrieved using
  clojure.contrib.miglayout/components.</p></div><div class="var-source"><pre>; clojure/contrib/miglayout.clj:37
(defn miglayout
  [#^JComponent container &amp; args]
  (let [item-constraints (apply parse-item-constraints args)
        {:keys [keywords components]} item-constraints
        {:keys [layout column row]} keywords]
    (do-layout container layout column row components)))</pre></div><div class="license"><p>Copyright (c) Rich Hickey. All rights reserved.</p><p>The use and distribution terms for this software are covered by the <a href="http://opensource.org/licenses/eclipse-1.0.php">Eclipse Public License 1.0</a>, which can be found in the file
          epl-v10.html at the root of this distribution. By using this software
          in any fashion, you are agreeing to be bound by the terms of this
          license. You must not remove this notice, or any other, from this
          software.</p></div></div>